<?php /* Smarty version 2.6.14, created on 2014-12-04 14:56:41
         compiled from datapay.firstpaytime.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'datapay.firstpaytime.html', 18, false),array('modifier', 'string_format', 'datapay.firstpaytime.html', 43, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<dl class="adminoption">
    <dt></dt>
    <dd><a href="/datapay/paytype"><?php echo $this->_tpl_vars['systemLang']['paytype']; ?>
</a></dd>
    <dd><a href="/datapay/firstpaytime" <?php if ($this->_tpl_vars['formAction'] == '/datapay/firstpaytime'): ?> style="color:#00ba35" <?php endif; ?>><?php echo $this->_tpl_vars['systemLang']['firstpaytime']; ?>
</a></dd>
    <dd><a href="/datapay/firstpayamount"><?php echo $this->_tpl_vars['systemLang']['firstpayamount']; ?>
</a></dd>
</dl>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<link rel="stylesheet" type="text/css" href="<?php echo @BASEURI; ?>
public/css/ui.datepicker.css"/>
<script language="javascript" src="<?php echo @BASEURI; ?>
public/js/ui.datetimepicker.js"></script>
<table border="0" class="search" cellspacing="0" id="search">
    <tr>
        <td>&nbsp;</td>
        <td>
            <?php echo $this->_tpl_vars['systemLang']['selectGame']; ?>
:
            <select name="s[game_id]" onchange="gameChange(this.value)" id="s_game_id">
                <option value=''><?php echo $this->_tpl_vars['systemLang']['choose']; ?>
</option>
                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['games'],'selected' => $this->_tpl_vars['search']['game_id']), $this);?>

            </select>&nbsp;&nbsp;|
            <?php echo $this->_tpl_vars['systemLang']['selectStarTime']; ?>
:
            <input class="text" style="width:120px" type="text" name="s[date_stat]" id="cctime_s" readonly value="<?php echo $this->_tpl_vars['search']['date_stat']; ?>
"/>
            <?php echo $this->_tpl_vars['systemLang']['to']; ?>
 <input class="text" style="width:120px" type="text" name="s[date_end]" id="cctime_e" readonly value="<?php echo $this->_tpl_vars['search']['date_end']; ?>
"/>&nbsp;&nbsp;

            <input type="submit" name="submit" value="<?php echo $this->_tpl_vars['systemLang']['submit']; ?>
" class="button" />
        </td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">
    <thead>
    <tr>
        <th><?php echo $this->_tpl_vars['systemLang']['firstpaytime']; ?>
</th>
        <th><?php echo $this->_tpl_vars['systemLang']['addUser']; ?>
</th>
        <th><?php echo $this->_tpl_vars['systemLang']['addUserRate']; ?>
</th>
        <th><?php echo $this->_tpl_vars['systemLang']['allUser']; ?>
</th>
        <th><?php echo $this->_tpl_vars['systemLang']['allUserRate']; ?>
</th>
    </tr>
    </thead>
    <tbody>
    <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['info']):
?>
    <tr class="row0">
        <td><?php echo $this->_tpl_vars['getFirst'][$this->_tpl_vars['info']['firstPayTimeType']]; ?>
</td>
        <td><?php echo $this->_tpl_vars['info']['num']; ?>
</td>
        <td><?php if ($this->_tpl_vars['totle']['Totnum'] != 0 && $this->_tpl_vars['info']['num'] != 0):  echo ((is_array($_tmp=$this->_tpl_vars['info']['num']/$this->_tpl_vars['totle']['Totnum']*100)) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
%<?php else: ?>0.00%<?php endif; ?></td>
        <td><?php echo $this->_tpl_vars['dataall'][$this->_tpl_vars['info']['firstPayTimeType']]; ?>
</td>
        <td><?php if ($this->_tpl_vars['totleall']['Totnum'] != 0 && $this->_tpl_vars['dataall'][$this->_tpl_vars['info']['firstPayTimeType']] != 0):  echo ((is_array($_tmp=$this->_tpl_vars['dataall'][$this->_tpl_vars['info']['firstPayTimeType']]/$this->_tpl_vars['totleall']['Totnum']*100)) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
%<?php else: ?>0.00%<?php endif; ?></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>

    </tfoot>
</table>
</form>
<script language="javascript">
    $('#cctime_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
    $('#cctime_e').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:"",maxDate:"+1d"});
</script>